package com.kandinfo.base.security.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.kandinfo.base.common.service.AbstractService;
import com.kandinfo.base.security.domain.UserInfo;
import com.kandinfo.base.security.repository.UserInfoRepository;
import com.kandinfo.base.security.service.UserInfoService;

@Service
public class UserInfoServiceImpl extends AbstractService<UserInfo, Long, UserInfoRepository> implements UserInfoService {
    
    @Resource
    public void setUserInfoRepository(UserInfoRepository userInfoRepository) {
        super.setRepository(userInfoRepository);
    }
    
    @Override
    public UserInfo findByUserId(Long userId) {
        return repository.findByUserId(userId);
    }

}
